<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<button @click="btnClick">按钮1</button>
			<button @click="btnClick()">按钮2</button>
			
			<button @click="btnClick2(123)">按钮3</button>
			<button @click="btnClick2()">按钮4</button>
			<button @click="btnClick2">按钮5</button>
			
			<button @click="btnClick3('abc', $event)">按钮6</button>
		</div>
		<script type="text/javascript">
			const app = new Vue({
				el:'#app',
				data:{
					message:'hhha'
				},
				methods:{
					btnClick(){
						console.log("click");
					},
					btnClick2(abc){
						console.log(abc);
					},
					btnClick3(abc, event){
						console.log(abc);
						console.log(event);
					}
				}
			})
		</script>
	</body>
</html>
